Toggle navigation
Toggle navigation
This project
Loading...
Sign in
장연우
/
WELLO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
신기성
2019-11-20 04:42:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
daee734af122d1fdc36bdbf747e1da6057ca6f1e
daee734a
1 parent
767841ea
duplicating resolve
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
22 deletions
vip/app/src/main/java/com/example/vip/DetailActivity.kt
vip/app/src/main/res/layout/actionbar_service_toggle.xml
vip/app/src/main/res/layout/activity_detail.xml
vip/app/src/main/res/menu/detailpage_navigation.xml
vip/app/src/main/java/com/example/vip/DetailActivity.kt
View file @
daee734
...
...
@@ -11,10 +11,6 @@ import android.view.Menu
import
android.view.MenuItem
import
android.view.View
import
android.webkit.WebView
import
android.widget.ImageView
import
android.widget.RatingBar
import
android.widget.TextView
import
android.widget.Toast
import
androidx.appcompat.app.ActionBar
import
androidx.appcompat.app.AppCompatActivity
import
androidx.core.content.ContextCompat
...
...
@@ -36,7 +32,9 @@ import android.icu.lang.UCharacter.GraphemeClusterBreak.T
import
android.net.Uri
import
android.util.Log
import
android.view.MotionEvent
import
android.widget.*
import
androidx.core.graphics.blue
import
kotlinx.android.synthetic.main.activity_detail.view.*
data class
MemoItemDetail
(
...
...
@@ -128,22 +126,29 @@ class DetailActivity : AppCompatActivity() {
}
}
bottomBar
=
supportActionBar
!!
val
r_bottomNavigation
:
BottomNavigationView
=
findViewById
(
R
.
id
.
rightBottomBVW
)
val
l_bottomNavigation
:
BottomNavigationView
=
findViewById
(
R
.
id
.
leftBottomBVW
)
//l_bottomNavigation.findViewById<Button>(R.id.favorBtn).setBackgroundResource(R.drawable.detail_heart_o)
val
mOnNavigationItemSelectedListener
=
BottomNavigationView
.
OnNavigationItemSelectedListener
{
item
->
when
(
item
.
itemId
){
R
.
id
.
favorBtn
->{
//Toast.makeText(this@DetailActivity,"ssibal",Toast.LENGTH_SHORT).show()
}
/*
R
.
id
.
shareBtn
->{
//val intent = Intent(this, SignInActivity::class.java)
//startActivity(intent)
//return@OnNavigationItemSelectedListener true
}
R.id.favorBtn ->{
R.id.favorBtn.blue
}
*/
R
.
id
.
linkBtn
->{
//Toast.makeText(this@DetailActivity,"ssibal",Toast.LENGTH_SHORT).show()
//bottomNavigationView.selectedItemId = R.id.linkBtn
val
intent
=
Intent
(
Intent
.
ACTION_VIEW
,
Uri
.
parse
(
memo
.
Link
))
startActivity
(
intent
)
}
...
...
@@ -152,9 +157,9 @@ class DetailActivity : AppCompatActivity() {
false
}
////bottom navigation view operation start 2
bottomBar
=
supportActionBar
!!
val
bottomNavigation
:
BottomNavigationView
=
findViewById
(
R
.
id
.
rightBottomBVW
)
bottomNavigation
.
setOnNavigationItemSelectedListener
(
mOnNavigationItemSelectedListener
)
r_bottomNavigation
.
setOnNavigationItemSelectedListener
(
mOnNavigationItemSelectedListener
)
l_
bottomNavigation
.
setOnNavigationItemSelectedListener
(
mOnNavigationItemSelectedListener
)
/*
val bottomNavigation2: BottomNavigationView =findViewById(R.id.leftBottomBVW)
bottomNavigation2.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
...
...
vip/app/src/main/res/layout/actionbar_service_toggle.xml
0 → 100644
View file @
daee734
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
>
<ToggleButton
android:id=
"@+id/actionbar_service_toggle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textOn=
"Logging On"
android:textOff=
"Logging Off"
/>
</RelativeLayout>
\ No newline at end of file
vip/app/src/main/res/layout/activity_detail.xml
View file @
daee734
...
...
@@ -56,8 +56,7 @@
android:layout_height=
"200dp"
android:background=
"@drawable/round_ratangle"
android:elevation=
"5dp"
android:scaleType=
"fitXY"
app:srcCompat=
"@drawable/image03"
/>
android:scaleType=
"fitXY"
/>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -71,7 +70,6 @@
android:layout_height=
"39dp"
android:background=
"@drawable/broken_rectangle"
android:gravity=
"center"
android:text=
"TextView"
android:textColor=
"#FFF"
android:textSize=
"18sp"
/>
...
...
@@ -80,8 +78,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"5dp"
android:ellipsize=
"end"
android:text=
"TextView"
/>
android:ellipsize=
"end"
/>
<TextView
android:id=
"@+id/policyTitleDetail"
...
...
@@ -89,7 +86,6 @@
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"11dp"
android:layout_marginBottom=
"4dp"
android:text=
"Textw"
android:textSize=
"30sp"
/>
<RatingBar
...
...
vip/app/src/main/res/menu/detailpage_navigation.xml
View file @
daee734
...
...
@@ -2,16 +2,20 @@
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<item
android:id=
"@+id/shareBtn"
android:id=
"@+id/favorBtn"
android:checkable=
"true"
android:enabled=
"true"
android:icon=
"@drawable/heart_fill"
android:title=
"Share"
android:title=
"favor"
android:visible=
"false"
app:showAsAction=
"ifRoom"
/>
<item
android:id=
"@+id/
favor
Btn"
android:id=
"@+id/
share
Btn"
android:enabled=
"true"
android:icon=
"@drawable/share"
android:title=
"Heart"
android:title=
"heart"
android:visible=
"false"
app:showAsAction=
"ifRoom"
/>
</menu>
...
...
Please
register
or
login
to post a comment