Skip to content
Snippets Groups Projects
Commit 3c5ee3b0 authored by robby syaifullah's avatar robby syaifullah
Browse files

Resize image on res/drawable, change what action do when phone shaking

parent 6558a303
Branches
No related merge requests found
...@@ -134,7 +134,7 @@ public class ChatActivity extends AppCompatActivity { ...@@ -134,7 +134,7 @@ public class ChatActivity extends AppCompatActivity {
float delta = acelVal - acelLast; float delta = acelVal - acelLast;
shake = shake * 0.9f + delta; // perform low-cut filter shake = shake * 0.9f + delta; // perform low-cut filter
if (shake >12) { if (shake >12) {
Intent i = new Intent(getApplicationContext(), HomeActivity.class); Intent i = new Intent(getApplicationContext(), HIstoryActivity.class);
startActivity(i); startActivity(i);
} }
} }
......
app/src/main/res/drawable/plank_video_2.PNG

74.4 KiB | W: | H:

app/src/main/res/drawable/plank_video_2.PNG

74.4 KiB | W: | H:

app/src/main/res/drawable/plank_video_2.PNG
app/src/main/res/drawable/plank_video_2.PNG
app/src/main/res/drawable/plank_video_2.PNG
app/src/main/res/drawable/plank_video_2.PNG
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/pushup_video_1.png

1.7 MiB | W: | H:

app/src/main/res/drawable/pushup_video_1.png

160 KiB | W: | H:

app/src/main/res/drawable/pushup_video_1.png
app/src/main/res/drawable/pushup_video_1.png
app/src/main/res/drawable/pushup_video_1.png
app/src/main/res/drawable/pushup_video_1.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/pushup_video_2.png

1.24 MiB | W: | H:

app/src/main/res/drawable/pushup_video_2.png

207 KiB | W: | H:

app/src/main/res/drawable/pushup_video_2.png
app/src/main/res/drawable/pushup_video_2.png
app/src/main/res/drawable/pushup_video_2.png
app/src/main/res/drawable/pushup_video_2.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/situp_video_1.png

1.98 MiB | W: | H:

app/src/main/res/drawable/situp_video_1.png

270 KiB | W: | H:

app/src/main/res/drawable/situp_video_1.png
app/src/main/res/drawable/situp_video_1.png
app/src/main/res/drawable/situp_video_1.png
app/src/main/res/drawable/situp_video_1.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/situp_video_2.png

858 KiB | W: | H:

app/src/main/res/drawable/situp_video_2.png

173 KiB | W: | H:

app/src/main/res/drawable/situp_video_2.png
app/src/main/res/drawable/situp_video_2.png
app/src/main/res/drawable/situp_video_2.png
app/src/main/res/drawable/situp_video_2.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:padding="16dp" android:padding="16dp"
android:background="@drawable/layout_bg"
tools:context="com.example.leo.fitnessdiy.HIstoryActivity"> tools:context="com.example.leo.fitnessdiy.HIstoryActivity">
<android.support.v7.widget.CardView <android.support.v7.widget.CardView
android:id="@+id/jogging" android:id="@+id/jogging"
......
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
android:layout_marginTop="30dp" android:layout_marginTop="30dp"
android:layout_marginBottom="20dp" android:layout_marginBottom="20dp"
android:text="Do Push Up 30 Times" android:text="Do Push Up 30 Times"
android:textColor="@color/bodyTextColor"
android:textSize="18dp" /> android:textSize="18dp" />
<Button <Button
...@@ -82,7 +81,7 @@ ...@@ -82,7 +81,7 @@
android:src="@drawable/pushup_video_1" /> android:src="@drawable/pushup_video_1" />
<TextView <TextView
android:layout_width="106dp" android:layout_width="84dp"
android:layout_height="53dp" android:layout_height="53dp"
android:text="@string/pushup_demo" android:text="@string/pushup_demo"
android:textColor="@color/headingColor" /> android:textColor="@color/headingColor" />
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<string name="pushup">Push Up</string> <string name="pushup">Push Up</string>
<string name="motivation_pushup">Push Up Challenge : Before and After</string> <string name="motivation_pushup">Push Up Challenge : Before and After</string>
<string name="pushup_demo">How to Push Up Properly</string> <string name="pushup_demo">How to Push Up Properly</string>
<string name="pushup_video">Push Up Video</string> <string name="pushup_video">Need Insight?</string>
<string name="situp">Sit Up</string> <string name="situp">Sit Up</string>
<string name="motivation_situp">Sit Up Challenge : Before and After</string> <string name="motivation_situp">Sit Up Challenge : Before and After</string>
<string name="situp_demo">How to do sit up properly</string> <string name="situp_demo">How to do sit up properly</string>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment