신기성

duplicating resolve

......@@ -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)
......
<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
......@@ -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
......
......@@ -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/favorBtn"
android:id="@+id/shareBtn"
android:enabled="true"
android:icon="@drawable/share"
android:title="Heart"
android:title="heart"
android:visible="false"
app:showAsAction="ifRoom" />
</menu>
......