Ignore:
Timestamp:
Mar 22, 2015 8:53:03 AM (9 years ago)
Author:
nanang
Message:

Re #1790:

  • Removed android_opengl_get_surface() for renderer view setup, Java application can directly supply Surface object as renderer window.
  • Added renderer view on pjsua CLI app sample.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/android/res/layout/activity_main.xml

    r4496 r5014  
    44    android:layout_height="fill_parent" 
    55    android:orientation="vertical" > 
     6 
     7    <TextView 
     8        android:id="@+id/textStatus" 
     9        android:layout_width="wrap_content" 
     10        android:layout_height="wrap_content" 
     11        android:layout_alignParentBottom="true" 
     12        android:layout_alignParentTop="false" 
     13        android:layout_centerHorizontal="true" 
     14        android:textIsSelectable="false" /> 
     15 
     16    <SurfaceView 
     17        android:id="@+id/surfaceViewIncomingCall" 
     18        android:layout_width="wrap_content" 
     19        android:layout_height="match_parent" 
     20        android:layout_above="@+id/imageApp" 
     21        android:layout_alignParentLeft="true" 
     22        android:layout_alignParentRight="true" 
     23        android:layout_alignParentTop="true" 
     24        android:layout_marginBottom="50dp" /> 
     25 
     26    <TextView 
     27        android:id="@+id/textApp" 
     28        android:layout_width="wrap_content" 
     29        android:layout_height="wrap_content" 
     30        android:layout_above="@+id/textStatus" 
     31        android:layout_centerHorizontal="true" 
     32        android:layout_marginBottom="126dp" 
     33        android:text="@string/app_name" 
     34        android:textSize="40sp" 
     35        android:typeface="serif" /> 
    636 
    737    <ImageView 
     
    1444        android:src="@drawable/main_image" /> 
    1545 
    16     <TextView 
    17         android:id="@+id/textApp" 
    18         android:layout_width="wrap_content" 
    19         android:layout_height="wrap_content" 
    20         android:layout_centerHorizontal="true" 
    21         android:layout_centerVertical="true" 
    22         android:text="@string/app_name" 
    23         android:textSize="40sp" 
    24         android:typeface="serif" /> 
    25  
    26     <TextView 
    27         android:id="@+id/textStatus" 
    28         android:layout_width="wrap_content" 
    29         android:layout_height="wrap_content" 
    30         android:layout_alignParentBottom="true" 
    31         android:layout_centerHorizontal="true"  
    32         android:textIsSelectable="false"/> 
    33  
    3446</RelativeLayout> 
Note: See TracChangeset for help on using the changeset viewer.