- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我编辑个人资料图片并将其正确保存在 fragment 中时,但我必须找到获取导航标题个人资料图片的方法来更新与我的 fragment 相同的个人资料图片。当抽屉导航打开时,我需要自动刷新导航标题中的个人资料图片。找了1个引用,但是没有明确的程序和解释。
Refresh Header in Navigation Drawer
布局图像-发生的问题
ProfileFragment.java
package com.example.imlproject.ui.admin_profile;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.media.Image;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;
import com.example.imlproject.Admin_Activity;
import com.example.imlproject.R;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.android.material.navigation.NavigationView;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
import com.google.firebase.storage.FirebaseStorage;
import com.google.firebase.storage.OnProgressListener;
import com.google.firebase.storage.StorageReference;
import com.google.firebase.storage.UploadTask;
import com.squareup.picasso.Picasso;
import com.theartofdev.edmodo.cropper.CropImage;
import com.theartofdev.edmodo.cropper.CropImageView;
import java.util.UUID;
import static android.app.Activity.RESULT_OK;
public
class ProfileFragment extends Fragment {
private ProfileViewModel profileViewModel;
private TextView companyName,companyRegisterNumber,email,ic;
private EditText address,username,description,businessHour,contact;
private ImageView profile_pic,admin_edit_profile_pic,admin_save_profile_pic;
private FrameLayout frameLayout1;
private String imageURL;
private FirebaseStorage storage;
private StorageReference storageReference;
private DatabaseReference reference;
private FirebaseAuth auth;
private FirebaseUser user;
View headview;
ImageView nav_admin_profile_pic;
NavigationView navigationView;
private static final int GalleryPick = 1;
Uri filePath;
public
View onCreateView (
@NonNull LayoutInflater inflater ,
ViewGroup container , Bundle savedInstanceState
) {
profileViewModel =
ViewModelProviders.of ( this ).get ( ProfileViewModel.class );
final View root = inflater.inflate ( R.layout.fragment_admin_profile , container , false );
profile_pic=(ImageView )root.findViewById(R.id.admin_profile_fragment_profile_pic) ;
admin_edit_profile_pic=(ImageView)root.findViewById(R.id.admin_profile_image_edit_icon) ;
admin_save_profile_pic=(ImageView )root.findViewById(R.id.admin_profile_image_save_icon) ;
address=(EditText )root.findViewById(R.id.admin_profile_fragment_address_textView);
businessHour=(EditText )root.findViewById(R.id.admin_profile_fragment_business_hour_textView);
contact=(EditText )root.findViewById(R.id.admin_profile_fragment_contact_textView);
description=(EditText )root.findViewById(R.id.admin_profile_fragment_description_textView);
username=(EditText )root.findViewById(R.id.admin_profile_fragment_username_textView);
companyName=(TextView )root.findViewById(R.id.admin_profile_fragment_company_name_textView);
companyRegisterNumber=(TextView )root.findViewById(R.id.admin_profile_fragment_company_register_number_textView);
email=(TextView )root.findViewById(R.id.admin_profile_fragment_email_textView);
ic=(TextView )root.findViewById(R.id.admin_profile_fragment_ic_textView);
frameLayout1 = (FrameLayout )root.findViewById(R.id.FrameLayout1);
profile_pic.setEnabled(false);
storage=FirebaseStorage.getInstance();
storageReference=storage.getReference();
auth=FirebaseAuth.getInstance();
user=auth.getCurrentUser();
reference=FirebaseDatabase.getInstance().getReference().child("Account").child(user.getUid());
//============================================================================================================================================================================
profile_pic.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
CropImage.activity()
.setAspectRatio(1,1)
.setCropShape(CropImageView.CropShape.RECTANGLE)
.start(getContext(),ProfileFragment.this);
}
});
//============================================================================================================================================================================
//============================================================================================================================================================================
admin_edit_profile_pic.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
admin_edit_profile_pic.setVisibility(View.GONE);
admin_save_profile_pic.setVisibility(View.VISIBLE);
frameLayout1.setBackgroundColor(Color.RED);
profile_pic.setEnabled(true);
Toast.makeText(getContext(),"Click your profile image above to edit it",Toast.LENGTH_LONG).show();
}
});
//============================================================================================================================================================================
//============================================================================================================================================================================
admin_save_profile_pic.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
uploadImage();
admin_edit_profile_pic.setVisibility(View.VISIBLE);
admin_save_profile_pic.setVisibility(View.GONE);
frameLayout1.setBackgroundColor(Color.WHITE);
profile_pic.setEnabled(false);
}
});
//============================================================================================================================================================================
//============================================================================================================================================================================
reference.addValueEventListener(new ValueEventListener(){
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot){
address.setText(dataSnapshot.child("address").getValue().toString());
businessHour.setText(dataSnapshot.child("businessHour").getValue().toString());
companyName.setText(dataSnapshot.child("companyName").getValue().toString());
companyRegisterNumber.setText(dataSnapshot.child("companyRegisterNumber").getValue().toString());
contact.setText(dataSnapshot.child("contact").getValue().toString());
description.setText(dataSnapshot.child("description").getValue().toString());
email.setText(dataSnapshot.child("email").getValue().toString());
ic.setText(dataSnapshot.child("ic").getValue().toString());
username.setText(dataSnapshot.child("username").getValue().toString());
imageURL=dataSnapshot.child("imageURL").getValue().toString();
StorageReference ref=FirebaseStorage.getInstance().getReferenceFromUrl(imageURL);
ref.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>(){
@Override
public void onSuccess(Uri uri){
Picasso.get().load(uri).resize(250,250).into(profile_pic);
Toast.makeText(getActivity(),"Image Loaded",Toast.LENGTH_SHORT).show();
}
});
}
@Override
public void onCancelled(@NonNull DatabaseError databaseError){
Toast.makeText(getActivity(),databaseError.getMessage(),Toast.LENGTH_SHORT).show();
}
});
//============================================================================================================================================================================
return root;
}
//============================================================================================================================================================================
private void uploadImage()
{
if(filePath!=null)
{
String imageid=UUID.randomUUID().toString();
StorageReference ref =storageReference.child("images/"+imageid);
ref.putFile(filePath)
.addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
@Override
public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
Toast.makeText(getActivity(),"Upload to online storage Successfully",Toast.LENGTH_SHORT).show();
}
});
auth=FirebaseAuth.getInstance();
user=auth.getCurrentUser();
reference= FirebaseDatabase.getInstance().getReference().child("Account").child(user.getUid());
reference.child("imageURL").setValue("gs://iml-project-4ccff.appspot.com/images/"+imageid);
Toast.makeText(getActivity(),"Profile image saved",Toast.LENGTH_SHORT).show();
//============================================================================================================================================================================
//View headerView = root.inflateHeaderView(R.layout.nav_header_admin_);
//nav_admin_profile_pic=(ImageView)headerView.findViewById(R.id.admin_nav_imageView);
/* reference.addValueEventListener(new ValueEventListener(){
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot){
imageURL=dataSnapshot.child("imageURL").getValue().toString();
StorageReference ref=FirebaseStorage.getInstance().getReferenceFromUrl(imageURL);
ref.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>(){
@Override
public void onSuccess(Uri uri){
Picasso.get().load(uri).resize(250,250).into(nav_admin_profile_pic);
Toast.makeText(getActivity(),"Image Loaded",Toast.LENGTH_SHORT).show();
}
});
}
@Override
public void onCancelled(@NonNull DatabaseError databaseError){
Toast.makeText(getActivity(),databaseError.getMessage(),Toast.LENGTH_SHORT).show();
}
});*/
//============================================================================================================================================================================
}
}
//============================================================================================================================================================================
//============================================================================================================================================================================
@Override
public void onActivityResult(int requestCode,int resultCode,Intent data) {
if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {
CropImage.ActivityResult result = CropImage.getActivityResult(data);
if (resultCode == Activity.RESULT_OK ) {
Uri resultUri = result.getUri();
filePath = result.getUri();
profile_pic.setImageURI(resultUri);
} else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {
Exception error = result.getError();
Toast.makeText(getContext(),"Error",Toast.LENGTH_LONG).show();
}
}
}
//============================================================================================================================================================================
}
Admin.Activity.java
package com.example.imlproject;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AlertDialog;
import androidx.fragment.app.Fragment;
import androidx.navigation.NavController;
import androidx.navigation.Navigation;
import androidx.navigation.ui.AppBarConfiguration;
import androidx.navigation.ui.NavigationUI;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.android.material.navigation.NavigationView;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
import com.google.firebase.storage.FirebaseStorage;
import com.google.firebase.storage.StorageReference;
import com.squareup.picasso.Picasso;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
public class Admin_Activity extends AppCompatActivity{
private AppBarConfiguration mAppBarConfiguration;
ImageView nav_admin_profile_pic;
TextView nav_admin_username, nav_admin_email;
View headview;
String imageURL;
//============================================================================================================================================================================
FirebaseStorage storage;
StorageReference storageReference;
DatabaseReference reference;
FirebaseAuth auth;
FirebaseUser user;
ActionBarDrawerToggle mDrawerToggle;
//============================================================================================================================================================================
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_admin_);
storage=FirebaseStorage.getInstance();
storageReference=storage.getReference();
Toolbar toolbar=findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
final DrawerLayout drawer=findViewById(R.id.drawer_layout);
NavigationView navigationView=findViewById(R.id.nav_view);
// Passing each menu ID as a set of Ids because each
// menu should be considered as top level destinations.
mAppBarConfiguration=new AppBarConfiguration.Builder(R.id.nav_admin_profile,R.id.nav_admin_upload_product,R.id.nav_admin_edit_product,R.id.nav_admin_delete_product,R.id.nav_admin_order_receive,R.id.nav_admin_unpaid_order,R.id.nav_admin_history).setDrawerLayout(drawer).build();
NavController navController=Navigation.findNavController(this,R.id.nav_host_fragment);
NavigationUI.setupActionBarWithNavController(this,navController,mAppBarConfiguration);
NavigationUI.setupWithNavController(navigationView,navController);
headview=navigationView.getHeaderView(0);
nav_admin_profile_pic=headview.findViewById(R.id.admin_nav_imageView);
nav_admin_username=headview.findViewById(R.id.admin_nav_username);
nav_admin_email=headview.findViewById(R.id.admin_nav_email);
auth=FirebaseAuth.getInstance();
user=auth.getCurrentUser();
reference=FirebaseDatabase.getInstance().getReference().child("Account").child(user.getUid());
//============================================================================================================================================================================
reference.addValueEventListener(new ValueEventListener(){
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot){
nav_admin_email.setText(dataSnapshot.child("email").getValue().toString());
nav_admin_username.setText(dataSnapshot.child("username").getValue().toString());
imageURL=dataSnapshot.child("imageURL").getValue().toString();
StorageReference ref=FirebaseStorage.getInstance().getReferenceFromUrl(imageURL);
ref.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>(){
@Override
public void onSuccess(Uri uri){
Picasso.get().load(uri).resize(250,250).into(nav_admin_profile_pic);
Toast.makeText(getApplicationContext(),"Image Loaded",Toast.LENGTH_SHORT).show();
}
});
}
@Override
public void onCancelled(@NonNull DatabaseError databaseError){
Toast.makeText(getApplicationContext(),databaseError.getMessage(),Toast.LENGTH_SHORT).show();
}
});
//============================================================================================================================================================================
}
@Override
public boolean onCreateOptionsMenu(Menu menu){
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.admin_,menu);
return super.onCreateOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item){
switch(item.getItemId()){
case R.id.admin_logout:{
final AlertDialog.Builder builder=new AlertDialog.Builder(Admin_Activity.this);
builder.setTitle("Warning!!!");
builder.setMessage("Are you sure you want to logout your account?");
builder.setCancelable(true);
//============================================================================================================================================================================
builder.setPositiveButton("Yes",new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog,int which){
FirebaseAuth.getInstance().signOut();
Intent intent=new Intent(getApplicationContext(),login_activity.class);
startActivity(intent);
finish();
}
});
//============================================================================================================================================================================
builder.setNegativeButton("No",new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog,int which){
dialog.cancel();
}
});
//============================================================================================================================================================================
AlertDialog alertDialog=builder.create();
alertDialog.show();
break;
}
}
return super.onOptionsItemSelected(item);
}
@Override
public boolean onSupportNavigateUp(){
NavController navController=Navigation.findNavController(this,R.id.nav_host_fragment);
return NavigationUI.navigateUp(navController,mAppBarConfiguration)||super.onSupportNavigateUp();
}
@Override
public void onBackPressed(){
final AlertDialog.Builder builder=new AlertDialog.Builder(Admin_Activity.this);
builder.setTitle("Warning!!!");
builder.setMessage("Are you sure you want to logout your account?");
builder.setCancelable(true);
//============================================================================================================================================================================
builder.setPositiveButton("Yes",new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog,int which){
FirebaseAuth.getInstance().signOut();
Intent intent=new Intent(getApplicationContext(),login_activity.class);
startActivity(intent);
finish();
}
});
//============================================================================================================================================================================
builder.setNegativeButton("No",new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog,int which){
dialog.cancel();
}
});
//============================================================================================================================================================================
AlertDialog alertDialog=builder.create();
alertDialog.show();
}
}
nav_header_admin_.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="@dimen/nav_header_height"
android:background="@drawable/side_nav_bar"
android:gravity="bottom"
android:orientation="vertical"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
android:theme="@style/ThemeOverlay.AppCompat.Dark">
<ImageView
android:id="@+id/admin_nav_imageView"
android:layout_width="250px"
android:layout_height="250px"
android:contentDescription="@string/nav_header_desc"
android:paddingTop="@dimen/nav_header_vertical_spacing"
app:srcCompat="@mipmap/ic_launcher_round" />
<TextView
android:id="@+id/admin_nav_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/nav_header_vertical_spacing"
android:text="username"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
<TextView
android:id="@+id/admin_nav_email"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="email" />
</LinearLayout>
activity_admin_.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<include
layout="@layout/app_bar_admin_"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.google.android.material.navigation.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_admin_"
app:menu="@menu/activity_admin__drawer" />
</androidx.drawerlayout.widget.DrawerLayout>
最佳答案
您可以在 fragment 中引用导航 View 的属性。因此,请在您的 ProfileFragment.java firebase 监听器中进行以下更改。
ref.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>(){
@Override
public void onSuccess(Uri uri){
Toast.makeText(getApplicationContext(),"Image Loaded",Toast.LENGTH_SHORT).show();
//declare a global variable to contain the uri to
//set in the drawable listener
globalDeclaredUri = uri;
}
});
ProfileFragment.java onCreate 应该监听抽屉 Activity 。确保 getActivity 不为空。
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_admin_);
storage=FirebaseStorage.getInstance();
storageReference=storage.getReference();
//your codes continues...
NavigationView navigationView =(NavigationView)getActivity().findViewById(R.id.nav_view);
View parentView = navigationView.getHeaderView(0);
ImageView navProfilePic = parentView.findViewById(R.id.admin_nav_imageView);
DrawerLayout mDrawerLayout = (DrawerLayout) getActivity().findViewById(R.id.drawer_layout);
NavigationView navigationView = (NavigationView) getActivity().findViewById(R.id.nav_view);
final View parentView = navigationView.getHeaderView(0);
final ImageView navProfilePic = parentView.findViewById(R.id.img_header_bg);
DrawerLayout mDrawerLayout = (DrawerLayout) getActivity().findViewById(R.id.drawer_layout);
mDrawerLayout.addDrawerListener(new DrawerLayout.DrawerListener() {
@Override
public void onDrawerSlide(View drawerView, float slideOffset) {
}
@Override
public void onDrawerOpened(View drawerView) {
}
@Override
public void onDrawerClosed(View drawerView) {
}
@Override
public void onDrawerStateChanged(int newState) {
Picasso.get()
.load(globalDeclaredUri)
.resize(250,250)
.into(navProfilePic);
}
});
}
关于java - 自动刷新抽屉导航标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59072245/
ion-nav-view 嵌套有一个奇怪的问题。当我在浏览器中加载应用程序时,我可以看到 URL 正在更改为 /app/menu,但页面上没有出现 menu.html 中的内容。页面是空白的。 以下是
运行截图如下: 源码如下: CN_TEST1
我正在开发一个示例reactjs应用程序(在学习过程中)。我有一个页面,其中列出了用户列表和一个用于添加新用户的添加按钮。 当我单击添加按钮时,我应该导航到用户表单以创建新用户。 单击用户表单中的提交
我的导航栏中的导航链接有问题。首先,它没有在导航栏中间对齐,如下所示: 另一部分是,我正在使用填充来执行此操作,因此如果我放置除“测试”以外的任何内容或将其放在不同的情况下,等等。它会重复该框。代码预
基本上,我有一个网站,我正在尝试使用 ajax 导航构建它,以便它获取网页并将它们加载到同一页面中。问题是当我正常放入内容时它工作正常但是当我尝试将内容添加到外部文档并从导航中访问它时框拆分你可以在这
以下站点左侧菜单的导航使用 CSS 进行鼠标悬停链接。 PVH 当我获取导航代码并将其设为单独的页面时。然后鼠标悬停链接不起作用。可能是什么原因? Test 最佳答案 可能... 对此事有话要说
一 问题描述 标准的 Web 浏览器包含在最近访问过的页面中向后和向前移动的功能。实现这些特性的一种方法是使用双栈来跟踪前后移动可以到达的页面。 Web 导航支持下面的命令。 后退页面:将当前页面推到
我想有条件地导航到某个页面。如果某些条件为真,我想导航到其他页面,否则我想留在同一页面上。我有类似的东西:- 在 bean.navigate 我有类似的东西:- public String navi
问题:有没有办法让按钮在用户控件中表现得像超链接? 我已经搜索了几天,但没有找到解决此问题的人。如何使用按钮在 WPF 应用程序中导航?具体来说,如何使用户控件内的按钮在其主机框架中导航?请记住,用户
我尝试使用 Android Navigation 组件并遇到了回栈问题。 我有 fragment A,B。 我写的: Navigation.findNavController(view).naviga
我有一个父布局,并从该子站点派生而来。 父级布局具有一个导航,每个导航点代表一个子站点。 如何在父布局中突出显示当前查看的子站点? 如果看起来如何? 最佳答案 可能不是最好的选择,但这是基于路由名称的
我正在开发Blazor服务器端应用程序。熟悉Blazor的任何人都在左侧的NavBar中填充超链接,并以特殊的CSS类进行装饰。我的问题是,如果任何内容都已编辑,我将试图停止导航并在一个特定页面上显示
我是 flutter 的新手,我正在开发一个具有多个屏幕的应用程序。 我想知道如何阻止 flutter 创建同一路线的多个屏幕, 例如我有 第1页和 第2页 ,如果我单击按钮导航到第 2 页并再次单击
我们的设计师创建了一个类似于上面屏幕的布局。主要思想是创建一个只有一个屏幕的应用程序,当您点击一个按钮时,屏幕的红色部分会发生变化(即 2 个文本框而不是 1 个文本框)。这个应用程序将是一个多平台应
有人可以解释为什么从pageE返回时不打印efeioi吗? 页面A Navigator.pushNamed(context, PageB.ROUTE).then((onValue) {
我需要在 iOS 应用程序中创建一个导航,如下图所示。 它包含一个标签栏和一个侧边菜单。 问题是正确的导航菜单按钮,应该在所有选项卡中都可见。甚至每个选项卡的所有内部屏幕。 当用户从侧面菜单中选择一个
这个问题在这里已经有了答案: Vim: move around quickly inside of long line (8 个答案) 关闭 8 年前。 我正在用 vim 编辑一个文本文件,我已经使
我很困惑,如何执行操作来创建从用户位置到用户选择/点击图钉覆盖层的图钉覆盖层(谷歌位置)的路线/导航。这是我的 map Activity ,它将显示我的 map 。 public class Plac
我正在使用 jQuery 函数 .animate 来一一突出显示导航链接。他们在 ul 中。我可以让它工作,只是想知道是否有一种方法可以缩短我的代码,这样我就不必单独突出显示每个项目。提前致谢 $(d
我正在创建一个带有“ anchor 导航”的网站,就像 Facebook 和谷歌邮件一样。我已经让它工作了,但还不完全。当我加载带有 #contact 之类的页面时,除非我单击它的链接,否则它不会加载
我是一名优秀的程序员,十分优秀!