Skip to content

Commit

Permalink
Minimize button added
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyankUpadhyay committed Mar 13, 2020
1 parent faf7c95 commit 70fad31
Show file tree
Hide file tree
Showing 19 changed files with 81 additions and 112 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified .gradle/5.4.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/5.4.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file modified .idea/caches/gradle_models.ser
Binary file not shown.
167 changes: 59 additions & 108 deletions .idea/workspace.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ allprojects {
dependencies {
...
...
implementation 'com.github.yellowmessenger:webviewsdk:0.0.7'
implementation 'com.github.yellowmessenger:webviewsdk:0.0.8'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@
import androidx.appcompat.widget.Toolbar;


import android.util.Log;

import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;

import java.util.HashMap;

public class MainActivity extends AppCompatActivity {
String configData = "{" +
"\"botName\": \"SomeBotName\"," +
"\"botID\": \"<Bot-ID>\"" +
"\"botID\": \"x1569558732722\"" +
"}";


Expand Down
7 changes: 7 additions & 0 deletions ymwebview/src/main/java/com/example/ymwebview/BotWebView.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import android.util.Log;

import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
Expand Down Expand Up @@ -52,6 +54,11 @@ protected void onCreate(Bundle savedInstanceState) {
toggleBottomSheet();
});
}
ImageButton backButton = findViewById(R.id.backButton);
backButton.setOnClickListener(view->{
this.finish();
});

}

private void speechRecognition() {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions ymwebview/src/main/res/layout/activity_bot_web_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,15 @@
android:textSize="18sp" />
</RelativeLayout>

<ImageButton
android:id="@+id/backButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_marginTop="23dp"
android:layout_marginRight="18dp"
android:background="@color/transparent"
app:srcCompat="@drawable/ic_back_button" />

</RelativeLayout>
1 change: 1 addition & 0 deletions ymwebview/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<color name="colorAccent">#E31837</color>
<color name="colorWhite">#FFFFFF</color>
<color name="colorDark">#2C2B2B</color>
<color name="transparent">#00FFFFFF</color>

<color name="black_overlay">#66000000</color>
</resources>

0 comments on commit 70fad31

Please sign in to comment.