Changeset 14247


Ignore:
Timestamp:
01/14/13 21:01:31 (12 years ago)
Author:
ltnguyen
Message:

Change:slider orientation, button background

Location:
issm/trunk-jpl/src/android/ISSM
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/android/ISSM/res/layout/issmcore.xml

    r14246 r14247  
    2727        android:textColor="#FF0000"
    2828        android:text="100%" />
     29
     30    <com.example.issm.VerticalSeekBar
     31        android:id="@+id/seekbar"
     32        android:layout_width="wrap_content"
     33        android:layout_height="300dp"
     34        android:layout_above="@+id/back"
     35        android:layout_marginBottom="50dp"
     36        android:max="490"
     37        android:progress="100"
     38        android:progressDrawable="@layout/seekbar_progress"
     39        android:thumb="@drawable/thumb" />
    2940     
    30     <com.example.issm.VerticalSeekBar
    31                 android:id="@+id/seekbar"
    32                 android:layout_width="wrap_content"
    33                 android:layout_below="@+id/value"
    34                 android:layout_height="420dp"
    35                 android:progress="100"
    36                 android:max="490"
    37                 android:progressDrawable="@layout/seekbar_progress"
    38             android:thumb="@drawable/thumb"/>
    39 
    4041    <FrameLayout
    4142        android:id="@+id/frame"
     
    4748        android:layout_marginBottom="12dp" >
    4849    </FrameLayout>
     50   
     51
     52    <Button
     53        android:id="@+id/back"
     54        android:layout_width="wrap_content"
     55        android:layout_height="wrap_content"
     56        android:layout_alignParentBottom="true"
     57        android:layout_alignParentLeft="true"
     58        android:layout_marginBottom="17dp"
     59        android:background="@drawable/btn_lightblue_glossy"
     60        android:text="Back"/>
    4961
    5062    <Button
     
    5264        android:layout_width="wrap_content"
    5365        android:layout_height="wrap_content"
    54         android:layout_alignParentBottom="true"
    55         android:layout_alignParentRight="true"
    56         android:layout_marginRight="58dp"
    57         android:text="Solve" />
    58 
    59     <Button
    60         android:id="@+id/back"
    61         android:layout_width="wrap_content"
    62         android:layout_height="wrap_content"
    63         android:layout_alignLeft="@+id/frame"
    64         android:layout_alignParentBottom="true"
    65         android:text="Back to \n Map Selection Screen " />
     66        android:layout_alignBaseline="@+id/back"
     67        android:layout_alignBottom="@+id/back"
     68        android:layout_marginLeft="14dp"
     69        android:layout_toRightOf="@+id/back"
     70        android:background="@drawable/btn_lightblue_glossy"
     71        android:text="Solve"/>
    6672
    6773</RelativeLayout>
  • issm/trunk-jpl/src/android/ISSM/src/com/example/issm/VerticalSeekBar.java

    r14246 r14247  
    3333
    3434    protected void onDraw(Canvas c) {
    35         c.rotate(90);
    36         c.translate(0, -getWidth());
     35        c.rotate(-90);
     36        c.translate(-getHeight(),0);
    3737        super.onDraw(c);
    3838    }
     
    4949            case MotionEvent.ACTION_UP:
    5050                i = getMax() - (int) (getMax() * event.getY() / getHeight());
    51                 setProgress(MAX_SIZE-i);
     51                setProgress(i);
    5252                onSizeChanged(getWidth(), getHeight(), 0, 0);
    5353                break;
Note: See TracChangeset for help on using the changeset viewer.